package com.ysxsoft.wdg.bean;

import com.ysxsoft.wdg.bean.cart.ShopcartBean;

import java.util.ArrayList;
import java.util.List;

public class ZyOrderBean {


    private int status;
    private String statu;
    private String orderid;
    private String dsn;
    private String account;
    private String total_num;
    private String kd_no;
    private String kd_type;

    private Back back;
    private List<ShopcartBean> detail;
    private String discuss;//0未评论过  1已评论过

    public Back getBack() {
        return back;
    }

    public void setBack(Back back) {
        this.back = back;
    }

    public String getDiscuss() {
        return discuss == null ? "" : discuss;
    }

    public void setDiscuss(String discuss) {
        this.discuss = discuss;
    }

    public String getKd_no() {
        return kd_no == null ? "" : kd_no;
    }

    public void setKd_no(String kd_no) {
        this.kd_no = kd_no;
    }

    public String getKd_type() {
        return kd_type == null ? "" : kd_type;
    }

    public void setKd_type(String kd_type) {
        this.kd_type = kd_type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatu() {
        return statu == null ? "" : statu;
    }

    public void setStatu(String statu) {
        this.statu = statu;
    }

    public String getOrderid() {
        return orderid == null ? "" : orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getDsn() {
        return dsn == null ? "" : dsn;
    }

    public void setDsn(String dsn) {
        this.dsn = dsn;
    }

    public String getAccount() {
        return account == null ? "" : account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getTotal_num() {
        return total_num == null ? "" : total_num;
    }

    public void setTotal_num(String total_num) {
        this.total_num = total_num;
    }

    public List<ShopcartBean> getDetail() {
        if (detail == null) {
            return new ArrayList<>();
        }
        return detail;
    }

    public void setDetail(List<ShopcartBean> detail) {
        this.detail = detail;
    }

    public static class Back{
        private String b_status;
        private String b_type;

        public String getB_status() {
            return b_status == null ? "" : b_status;
        }

        public void setB_status(String b_status) {
            this.b_status = b_status;
        }

        public String getB_type() {
            return b_type == null ? "" : b_type;
        }

        public void setB_type(String b_type) {
            this.b_type = b_type;
        }
    }
}
